
#ifndef _MEMBER_BXMLDOCUMENT_H_
#define _MEMBER_BXMLDOCUMENT_H_

#include <BXmlDocument>

namespace BWE
{
	class member_BXmlDocument
	{
	public:
		member_BXmlDocument(BXmlDocument* xmldocument);
		~member_BXmlDocument();

		int readName(const BString& text, int pos, BString& name);
		bool overTest(const char* name, BXmlNode* node);

		bool readNode(BXmlNode* node, const BStream& stream);
		void readAttribs(BXmlNode* node, BString& text);
		void writeNode(BXmlNode* node, int tab);

		BXmlDocument*			boss;
		BString					text;
		BXmlNodeHolder			root;
	};
}

#endif
